import styled from "styled-components";

export const TopRankingWrapper = styled.div `
  width: 230px;
  /* height: 120px;
  display: flex; */
  

  .header{
     /* width: 230px; */
     height: 120px;
    display: flex;
    padding: 20px 0 0 20px;
    .header-img{
      margin-right: 10px;
    }

    .title{
      color: #333333;
      font-size: 14px;
      font-weight: 700;
    }
    .btn {
        display: inline-block;
        text-indent: -9999px;
        width: 22px;
        height: 22px;
        margin: 8px 10px 0 0;
        cursor: pointer;
      }

      .play {
        background-position: -267px -205px;
      }

      .favor {
        background-position: -300px -205px;
      }
  }

  .list{

    .list-item{
       position: relative;
       display: flex;
       line-height: 32px;
       padding-left: 20px;
       

       .rank{
         width: 35px;
         height: 32px;
         text-align: center;
         color: #c80d0c;
         font-size: 16px;
         
       }
       .info{
         display: flex;
         justify-content: space-between;
         width: 170px;
         height: 32px;
         font-size: 12px;
         color: #000000;

         .name{
           height: 24px;
           /* padding: 0 2px; */
         }
        .operate {
          position: absolute;
          right: 0;top: 4px;
          display: flex;
          align-items: center;
          display: none;
          width: 82px;

          .btn {
            width: 17px;
            height: 17px;
            margin-left: 8px;
            cursor: pointer;
          }

          .play {
            background-position: -267px -268px;
          }

          .addto {
            position: relative;
            top: 2px;
            background-position: 0 -700px;
          }

          .favor {
            background-position: -297px -268px;
          }
        }
       }

        &:hover {
        .operate {
          display: block;
        }
      }
    }

  }

   .footer{
      height: 32px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      margin-right: 32px;
  
      a{
        color: #000;
        font-size: 12px;
      }
    }


`